load("//tools:cpplint.bzl", "cpplint")

package(default_visibility = ["//visibility:public"])

cc_library(
    name = "canbus_agribot_protocol",
    srcs = [
      "accel_cmd_1e3.cc",
      "accel_rpt_2e3.cc",
      "steering_motor_rpt_2e4.cc",
    ],
    hdrs = [
      "accel_cmd_1e3.h",
      "accel_rpt_2e3.h",
      "steering_motor_rpt_2e4.h",
    ],
    deps = [
        "//modules/drivers/canbus/common:canbus_common",
        "//modules/canbus/proto:canbus_proto",
        "//modules/drivers/canbus/can_comm:message_manager_base",
    ],
)

cc_test(
    name = "accel_cmd_1e3_test",
    size = "small",
    srcs = [
        "accel_cmd_1e3_test.cc",
    ],
    deps = [
        "//modules/canbus/vehicle/agribot/protocol:canbus_agribot_protocol",
        "@gtest//:main",
    ],
)

cc_test(
    name = "steering_motor_rpt_2e4_test",
    size = "small",
    srcs = [
        "steering_motor_rpt_2e4_test.cc",
    ],
    deps = [
        "//modules/canbus/vehicle/agribot/protocol:canbus_agribot_protocol",
        "@gtest//:main",
    ],
)

cc_test(
    name = "accel_rpt_2e3_test",
    size = "small",
    srcs = [
        "accel_rpt_2e3_test.cc",
    ],
    deps = [
        "//modules/canbus/vehicle/agribot/protocol:canbus_agribot_protocol",
        "@gtest//:main",
    ],
)

cpplint()
